/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package tankgame;

import controller.Controller;
import javax.swing.JFrame;
import javax.swing.JPanel;
import models.Model;
import views.TankView;


class terrainPanel extends JPanel implements KeyListener {
  public void keyPressed(KeyEvent e) {
    if (e.getKeyCode() == KeyEvent.VK_UP {
     //accelerate
    }
    if (e.getKeyCode() == KeyEvent.VK_DOWN {
    //slow down
    }
    if (e.getKeyCode() == KeyEvent.VK_RIGHT {
    //turn right
    }
    if (e.getKeyCode() == KeyEvent.VK_LEFT {
    //turn left
    }
  }
  public void keyReleased {
    //needs to stop
  }
}
public class TankGame {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        TankView view = new TankView();
        Controller controller = new Controller();
        Model model = new Model();
        
        view.setController(controller);
        controller.setModel(model);
        controller.setView(view);
        
        JFrame f = new JFrame();
        f.setTitle("Copyright © <Alley-OOP>, 2011");
        f.setSize(800,600);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setContentPane(view);
        f.setVisible(true);
        
    }
    
}
